<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head></head>
<body>
Backgrounds for canvas widgets
<p>
Canvas widgets can contain backgrounds specified in this package. <br/>
<br/>
<b>Setting a background for a widget</b><br/>
<code>
<font color="green">
/*Creating the widget*/</font><br/>
Label label=new Label("Testing Background");<br/>
<font color="green">/*Creating the background*/</font><br/>
GradientBackground bg=new GradientBackground();<br/>
<font color="green">/*setting the background for the widget*/</font><br/>
label.setWidgetBackground(bg);<br/>
</code>
<br/>
<b>Setting the widget background to transparent</b><br/>
<b>Note:</b>Please note that the screen's background should be drawn before the widget background.<br/>
<font color="green">/*Setting the widget background to transparent*/</font><br/>
<code>label.setWidgetBackground(null);</code><br/>
<b>Note:</b>A call to <code>Widget.setBGColor(bgColor)</code> after <code>label.setWidgetBackground(null);</code> is called you draw the widget with the specified <code>bgColor</code> 
</p>
</body>
</html>